import request from '@/utils/request'

/**
 * 登录
 * */
export const loginApi = (data) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

/**
 * 获取用户资料
 */
export const getUserInfoApi = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 * 获取用户个人头像资料
 */

export const getUserIconApi = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}

